<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'yjcz.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="zhh/js/yjcz.js"></script>
  </head>
  
  <body>
  	<%
  	ServletContext context = session.getServletContext();
  	Object eventIdObj = context.getAttribute("processingEventId");
  	String eventId = null;
  	if(eventIdObj != null){ 
  	eventId = eventIdObj.toString();%>
     <table width="100%" height="100%" border="0" cellpadding="0" width="100%"
			cellspacing="0" style="table-layout: fixed">
			<tr>
				<td >
					<!-- 事件详情 -->
					<iframe name="eventFrame" height="700"  border="0" width="100%"
						frameborder="0" src="wzp/event_findById.action?event.EId=<%=eventId %>" id="eventFrame">
						浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。
					</iframe>
				</td>
			</tr>
			<%
			String planId = null;
			Object planIdObj = context.getAttribute("processingPlanId"); 
			if(planIdObj != null) {
			planId = planIdObj.toString();%>
			<tr>
				<td>
				<!-- 关联预案列表 -->
					<iframe name="planFrame" src="lzm/query_plan_rle.jsp?PId=<%=planId %>" height="100%" width="100%"
						border="0" frameborder="0" id="planFrame"
						style="border-left: solid 1px #84b1d3;border-right: solid 1px #84b1d3;">
						浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。
					</iframe>
				</td>
			</tr>
			<%} %>
			<tr>
				<td id="tbRF" width="177"
					style="border-left: solid 1px #84b1d3;">
					<%if(planId != null){ %>
						<input type="button" value="启动预案" id="startPlan"></input>
					<%}else { %>
						<input type="button" value="采取紧急措施" id="startAction"></input>
					<%} %>
				</td>
			</tr>
		</table>
		<%} %>
  </body>
</html>
